package com.Service;

import com.Dao.UploadBookDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;
import java.io.IOException;
import java.sql.SQLException;

@Service
@Slf4j
public class UploadBookService {
    @Autowired
    private UploadBookDao uploadBookDao;
    public void uploadBook(HttpServletRequest request, HttpServletResponse response) throws ServletException, SQLException, IOException {
        request.setCharacterEncoding("UTF-8");
        uploadBookDao.insertExamineBook(request,response);
    }
}
